from fastapi import FastAPI
from paddleclas import paddleclas

from upload import upload
from config import main
import uvicorn

app = FastAPI()

main.init()
@app.get("/")
async def root():
    return {"message": "ok"}

app.mount("/upload", upload.upload)

if __name__ == "__main__":
    uvicorn.run(app="main:app", host="0.0.0.0", port=8500, reload=True)